package com.mind.customer.handler;

import com.mind.common.utils.poi.ExcelHandlerAdapter;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Workbook;

public class RulePassRateHandler implements ExcelHandlerAdapter {


    @Override
    public Object format(Object value, String[] args, Cell cell, Workbook wb) {

        if (value instanceof Double) {
            return ((Double) value) * 100 + "%";
        }
        return null;
    }
}
